package com.mingda.weathermagiccenter.config.hefengconfig;

import com.mingda.weathermagiccenter.config.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "weatherconfig")
@PropertySource(value = "classpath:application-weather.yml", encoding = "UTF-8")
public class WeatherConfigBean {

    private List<String> location;
    private String key;
    private boolean enabled;
    private String weatherurl;

    private String weahterfcurl;

    private String weatherwarningurl;

    private String weatheralarmurl;
    private List<FireLevelConfig> firelevel;
    private List<WindSpeedConfig> windspeed;
    private List<TemperatureConfig> temperature;
    private List<HumidityConfig> humidity;
    private List<NoraindayConfig> norainday;
    private String spring_prevention_start;
    private String spring_prevention_end;
    private String autumn_prevention_start;
    private String autumn_prevention_end;


    private List<LegendTemConfig> legendtem;

    private List<LegendWindConfig> legendwind;

    private List<LegendHumiConfig> legendhumi;

    private List<LegendPrecConfig> legendprec;

    private List<LegendPresConfig> legendpres;

    private List<LegendWaterrateConfig> legendwaterrate;

    private List<LegendWaterrateoutConfig> legendwaterrateout;

    private List<LegendWaterrateinsideConfig> legendwaterrateinside;

    private List<LegendPrec10daysConfig> legendprec10days;

    private List<LegendPrec3monthsConfig> legendprec3months;

    private List<LegendPrecAllConfig> legendprecall;


    public List<LegendPresConfig> getLegendpres() {
        return legendpres;
    }

    public void setLegendpres(List<LegendPresConfig> legendpres) {
        this.legendpres = legendpres;
    }

    public List<LegendTemConfig> getLegendtem() {
        return legendtem;
    }

    public String getWeahterfcurl() {
        return weahterfcurl;
    }

    public void setWeahterfcurl(String weahterfcurl) {
        this.weahterfcurl = weahterfcurl;
    }

    public void setLegendtem(List<LegendTemConfig> legendtem) {
        this.legendtem = legendtem;
    }

    public List<LegendWindConfig> getLegendwind() {
        return legendwind;
    }

    public void setLegendwind(List<LegendWindConfig> legendwind) {
        this.legendwind = legendwind;
    }

    public List<LegendHumiConfig> getLegendhumi() {
        return legendhumi;
    }

    public void setLegendhumi(List<LegendHumiConfig> legendhumi) {
        this.legendhumi = legendhumi;
    }

    public List<LegendPrecConfig> getLegendprec() {
        return legendprec;
    }

    public void setLegendprec(List<LegendPrecConfig> legendprec) {
        this.legendprec = legendprec;
    }

    public List<FireLevelConfig> getFirelevel() {
        return firelevel;
    }

    public void setFirelevel(List<FireLevelConfig> firelevel) {
        this.firelevel = firelevel;
    }

    public List<WindSpeedConfig> getWindspeed() {
        return windspeed;
    }

    public void setWindspeed(List<WindSpeedConfig> windspeed) {
        this.windspeed = windspeed;
    }

    public List<TemperatureConfig> getTemperature() {
        return temperature;
    }

    public void setTemperature(List<TemperatureConfig> temperature) {
        this.temperature = temperature;
    }

    public List<HumidityConfig> getHumidity() {
        return humidity;
    }

    public void setHumidity(List<HumidityConfig> humidity) {
        this.humidity = humidity;
    }

    public List<NoraindayConfig> getNorainday() {
        return norainday;
    }

    public void setNorainday(List<NoraindayConfig> norainday) {
        this.norainday = norainday;
    }

    public String getSpring_prevention_start() {
        return spring_prevention_start;
    }

    public void setSpring_prevention_start(String spring_prevention_start) {
        this.spring_prevention_start = spring_prevention_start;
    }

    public String getSpring_prevention_end() {
        return spring_prevention_end;
    }

    public void setSpring_prevention_end(String spring_prevention_end) {
        this.spring_prevention_end = spring_prevention_end;
    }

    public String getAutumn_prevention_start() {
        return autumn_prevention_start;
    }

    public void setAutumn_prevention_start(String autumn_prevention_start) {
        this.autumn_prevention_start = autumn_prevention_start;
    }

    public String getAutumn_prevention_end() {
        return autumn_prevention_end;
    }

    public void setAutumn_prevention_end(String autumn_prevention_end) {
        this.autumn_prevention_end = autumn_prevention_end;
    }

    public List<HumidityConfig> getHumidityConfigs() {
        return humidityConfigs;
    }

    public void setHumidityConfigs(List<HumidityConfig> humidityConfigs) {
        this.humidityConfigs = humidityConfigs;
    }

    private List<HumidityConfig> humidityConfigs;
    private Integer interval_time;


    public Integer getInterval_time() {
        return interval_time;
    }
    public void setInterval_time(Integer interval_time) {
        this.interval_time = interval_time;
    }



    public List<String> getLocation() {
        return location;
    }

    public void setLocation(List<String> location) {
        this.location = location;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getWeatherurl() {
        return weatherurl;
    }

    public void setWeatherurl(String weatherurl) {
        this.weatherurl = weatherurl;
    }


    public String getWeatherwarningurl() {
        return weatherwarningurl;
    }

    public void setWeatherwarningurl(String weatherwarningurl) {
        this.weatherwarningurl = weatherwarningurl;
    }

    public String getWeatheralarmurl() {
        return weatheralarmurl;
    }

    public void setWeatheralarmurl(String weatheralarmurl) {
        this.weatheralarmurl = weatheralarmurl;
    }

    public List<LegendWaterrateConfig> getLegendwaterrate() {
        return legendwaterrate;
    }

    public void setLegendwaterrate(List<LegendWaterrateConfig> legendwaterrate) {
        this.legendwaterrate = legendwaterrate;
    }

    public List<LegendWaterrateoutConfig> getLegendwaterrateout() {
        return legendwaterrateout;
    }

    public void setLegendwaterrateout(List<LegendWaterrateoutConfig> legendwaterrateout) {
        this.legendwaterrateout = legendwaterrateout;
    }

    public List<LegendWaterrateinsideConfig> getLegendwaterrateinside() {
        return legendwaterrateinside;
    }

    public void setLegendwaterrateinside(List<LegendWaterrateinsideConfig> legendwaterrateinside) {
        this.legendwaterrateinside = legendwaterrateinside;
    }

    public List<LegendPrec10daysConfig> getLegendprec10days() {
        return legendprec10days;
    }

    public void setLegendprec10days(List<LegendPrec10daysConfig> legendprec10days) {
        this.legendprec10days = legendprec10days;
    }

    public List<LegendPrec3monthsConfig> getLegendprec3months() {
        return legendprec3months;
    }

    public void setLegendprec3months(List<LegendPrec3monthsConfig> legendprec3months) {
        this.legendprec3months = legendprec3months;
    }

    public List<LegendPrecAllConfig> getLegendprecall() {
        return legendprecall;
    }

    public void setLegendprecall(List<LegendPrecAllConfig> legendprecall) {
        this.legendprecall = legendprecall;
    }

    
}
